var t = require;
var e = module;
var o = exports;
var n =
    (this && this.__extends) ||
    (function() {
        var t = function(e, o) {
            return (t =
                Object.setPrototypeOf ||
                ({ __proto__: [] }
                    instanceof Array &&
                    function(t, e) {
                        t.__proto__ = e;
                    }) ||
                function(t, e) {
                    for (var o in e) e.hasOwnProperty(o) && (t[o] = e[o]);
                })(e, o);
        };
        return function(e, o) {
            function n() {
                this.constructor = e;
            }
            t(e, o), (e.prototype = null === o ? Object.create(o) : ((n.prototype = o.prototype), new n()));
        };
    })();
Object.defineProperty(o, "__esModule", { value: !0 });
var r = t("PlatformCtrl_web"),
    a = t("Platforms"),
    i = t("Sounds"),
    s = t("ConfS"),
    c = t("VideoAdCtrlN"),
    l = (function(t) {
        function e() {
            var e = t.call(this) || this;
            return (
                (e.defaultLanguageKey = "CN"),
                (e.显示世界榜 = !0),
                (e.显示好友榜 = !1),
                (e.显示进主界面宝箱 = !1),
                (e.显示客服签到 = !1),
                (e.显示收藏有礼 = !1),
                (e.显示添到桌面 = !1),
                (e.显示好友助力 = !1),
                (e.显示充值商店 = !1),
                (e.显示联系我们 = !1),
                (e.显示公司名 = !0),
                (e.显示分享 = !0),
                (e.显示5星好评 = !1),
                (e.显示退出按钮 = !1),
                (e.显示客服信息 = !1),
                (e.强制显示视频 = !0),
                (e.显示录屏分享 = !1),
                (e.显示抖音更多游戏 = !1),
                (e.显示QQ盒子广告 = !1),
                (e.显示红包 = !1),
                (e.显示试玩领奖 = !0),
                a.default.userStorage.openId ||
                ((a.default.userStorage.openId = "4399Guest" + new Date().getTime()),
                    a.default.userStorage.setDirty()),
                (a.default.userStorage.nickname = "4399"),
                e
            );
        }
        return (
            n(e, t),
            (e.prototype.获取物理参数 = function() {
                (this.screenWidth = document.documentElement.clientWidth),
                (this.screenHeight = document.documentElement.clientHeight),
                (this.language = "zh"),
                (this.粪叉 = !1);
            }),
            (e.prototype.init = function(t) {
                console.log('初始化4399')
                this._init(t),
                    document.addEventListener("visibilitychange", function() {
                        console.log(document.visibilityState),
                            "hidden" == document.visibilityState ? i.Sounds.pauseMusic() : i.Sounds.resumeMusic();
                    });
            }),
            (e.prototype.各种东西都加载完了 = function() {
                (a.default._胜利宝箱 = s.DatasManager.Mini4399合成点击完毕出现Banner),
                t.prototype.各种东西都加载完了.call(this);
            }),
            (e.prototype.加载完毕 = function() {
                t.prototype.加载完毕.call(this);
            }),
            (e.prototype.加载完毕初始化广告 = function() {
                var t = this;
                (this.rewardAdCtrl = new c.default(
                    "激励视频", {
                        show: function() {
                            // h5api.playAd(function(e) {
                            //     switch ((console.log("代码:" + e.code + ",消息:" + e.message), e.code)) {
                            //         case 1e4:
                            //             break;
                            //         case 10001:
                            t.rewardAdCtrl.close(!0);
                            //             break;
                            //         default:
                            //             console.error("广告异常 " + JSON.stringify(e)), t.rewardAdCtrl.close(!1);
                            //     }
                            // });
                        }
                    },
                    "不需要广告ID"
                ));
            }),
            (e.prototype._get = function(t, e, o, n, r, a) {
                var i = this.getURL(t, o, e);
                this.requestComplete(o, i, {}, !1, r, a);
            }),
            (e.prototype._post = function(t, e, o, n, r, a) {
                var i = this.getURL(t, o, e);
                this.requestComplete(o, i, {}, !1, n, r);
            }),
            (e.prototype._share = function(e, o) {
                console.log('分享');
                // t.prototype._share.call(this, e, o), h5api.share && h5api.share();
            }),
            e
        );
    })(r.default);
o.default = l;